#coding:utf-8

import wx
import sys, os
from gui import testeditor


def run(filename):
    app = wx.App(0)
    f = testeditor.MainForm(None, size=(600,400))
    f.importTest(filename)
    f.Show()
    app.MainLoop()
    
    
if __name__ == '__main__':
    filename = None
    if len(sys.argv) > 1:
        filename = sys.argv[1]
    run(filename)
    sys.stdout.write("asd")